<?php
global $user;
?><div class="content fixed-fluid">
    <div class="row-fluid">
        <div class="home-main-content">
            <div class="mozaic-widget widget-welcome" data-guid="widget-104" data-initialized="true" data-widget="welcome">

                <h1>Hello <?php echo $user->name ?>!</h1>

                <p class="home-page-text">Welcome to <strong><q style="color: #065776;">buzz</q><q style="color: #f9800c;">pulse</q><sup style="color: #4c93e8; font-size: 10px;">BETA</sup></strong>!

                <p class="home-page-text">Please send us your <a class="action-color-normal" href="mailto:pulse@buzzmetrics.vn">feedback</a>. If you need help using your account, contact <a class="action-color-normal" href="mailto:pulse@buzzmetrics.vn">support</a>.</p>
            </div>

            <div class="top-left-content"><img class="home-user-image" src="http://www.gravatar.com/avatar/<?php echo md5(strtolower($user->email)); ?>?d=http://pulse.buzzmetrics.vn/Images/pulse_75.png"></div>

            <ul class="home-buttons home-buttons-available">
                <li class="home-section">Main<br>
                    Actions</li>



                <li class="mozaic-widget home-tasks-button widget-user_item_count" data-guid="widget-106" data-initialized="true" >
                    <span class=""><a class="btn" href="#activity"><i class="icon-inbox"></i> <span>Tasks</span>

                            <div class="number">

                            </div></a></span> </li>

                <!--<li class="mozaic-widget home-scheduled-button widget-user_item_count" data-guid="widget-107" data-initialized="true" >
                 <span class="default-home-button"><a class="btn" href="#posts"><i class="icon-mention-boards"></i> <span>Scheduled<br>
                Posts</span>

                <div class="number">
                    0
                </div></a></span></li>

                <li class="mozaic-widget home-action-button permission-button widget-update_status_button" data-guid="widget-108" data-initialized="true" >
                    

                    <div class="permision-button-holder">
                        <a class="has_permission btn update-status"><i class="icon-post"></i> <span>Update Status</span></a>
                    </div>
                </li>-->
                <?php if ($user->type != '3' && $user->type != '4') : ?>
                    <li class="mozaic-widget home-action-button permission-button widget-add_users_button" data-guid="widget-109" data-initialized="true" >


                        <div class="permision-button-holder">
                            <a class="has_permission btn add-users" href="#settings/groups"><i class="icon-account-menu"></i> <span>Add Users</span></a>
                        </div>
                    </li>


                    <!--<li class="mozaic-widget home-reports-button widget-user_item_count" data-guid="widget-110" data-initialized="true" >
                     <span class="home-action-button"><a class="btn" href="#home"><i class="icon-full-reports"></i> <span>Reports</span>

                    <div class="number">
                        0
                    </div><i class="icon-plus add-report-icon"></i></a></span>-->

                    <li class="mozaic-widget home-action-button permission-button widget-add_stream_button">


                        <div class="permision-button-holder">
                            <a class="has_permission btn add-stream"><i class="icon-plus"></i> <span>Add Stream</span></a>
                        </div>
                    </li>
                <?php endif; ?>
                <li class="mozaic-widget home-action-button home-connect-button permission-button widget-permission_button">

                    <div class="permision-button-holder">
                        <a class="has_permission btn " href="#settings/connected-accounts"><i class="icon-accounts-menu"></i> <span>Connect Account</span></a>
                    </div>
                </li>
            </ul>

            <ul class="home-buttons home-buttons-row">
                <li class="home-section">Your<br>
                    Account</li>

                <li class="home-action-button default-home-button">
                    <a class="btn" href="#settings/account"><i class="icon-settings"></i> <span>Settings</span></a>
                </li>
                <?php if ($user->teamId == 2) : ?>
                    <li class="home-action-button default-home-button">
                        <a class="btn" href="/switchuser"><i class="icon-account-menu"></i> <span>Switch User</span></a>
                    </li>
                <?php endif; ?>
                <!--<li class="homepage-stream-account-info">
                    <div>
                        <p class="mozaic-widget homepage-connected-accounts widget-user_item_count" data-guid="widget-113" data-initialized="true" >
                        3 </p>

                        <p class="mozaic-widget homepage-saved-streams widget-user_item_count" data-guid="widget-114" data-initialized="true" >
                        9 </p>
                    </div>

                    <div>
                        <span class="homepage-connected-accounts">Connected<br>
                        Accounts</span> <span class="homepage-saved-streams">Saved<br>
                        Streams</span>
                    </div>
                </li>-->
                <!-- Monitoring -->
                <?php if ($user->teamId == 2 || ($user->type != '3' && $user->type != '4')) : ?>
                <li class="mozaic-widget home-action-button">

                    <div class="permision-button-holder">
                        <a class="has_permission btn " href="#monitoring"><i class="icon-monitoring-menu"></i> <span>Monitoring KPI</span></a>
                    </div>
                </li>
                <?php endif; ?>
                <!-- End Monitoring -->
            </ul>

            <ul class="home-buttons home-buttons-row">
                <li class="home-section">Support</li>

                <li class="home-action-button default-home-button">
                    <a class="btn" href="#"><i class="icon-knowledge"></i> <span>Knowledge<br>
                            Base</span></a>
                </li>

                <li class="home-action-button">
                    <a class="btn" href="mailto:pulse@buzzmetrics.vn"><i class="icon-support"></i> <span>Contact Us</span></a>
                </li>
            </ul>
        </div>
    </div>
</div>